package com.awesome.spring.openfeign.controller;

import com.awesome.spring.openfeign.feigin.MyFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: awesome-spring
 * @description: feign控制器类
 * @author: Alex Wu
 * @createDate: 2025-02-06 15:52
 **/
@RestController
public class OpenFeignController {

    @Autowired
    private MyFeignClient myFeignClient;

    @GetMapping("/openfeign-hello")
    public String hello() {
        return myFeignClient.getHello();
    }


}
